﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ConceptsFramework.AbstractConceptElements;
using ConceptsFramework.DerivedRelationships;


namespace PatternExplorer.DerivedConcepts
{
    public class FieldSummary : AbstractBindableConcept, IEquatable<FieldSummary>
    {
        public bool Equals(FieldSummary other)
        {
            return (this.Name == other.Name);
        }

        public override bool IsRelationshipAutorized<T>()
        {
            Type genericType = typeof(T);
            if (typeof(IsContainedRelationship).IsAssignableFrom(genericType))
                return true;
            return false;
        }

        public override void ResolveInverseRelationships()
        {

        }

        public string ReturnTypeName
        {
            get;
            set;
        }

        public bool IsStatic
        {
            get;
            set;
        }

        public bool IsPublic
        {
            get;
            set;
        }
    }

}
